import axios from "axios";

// const axiosInstance = axios.create({
//     baseURL: 'http://localhost:3000/',
//     timeout: 3000
// });

export async function register(username: string, password: string) {
    return await axios.post('/api/user/register', {
        username, password
    });
}

export async function login(username: string, password: string) {
    return await axios.post('/api/user/login', {
        username, password
    });
}